import request from '@/utils/request'
//学员管理接口
export function sysCourseStudentQuery(data) { //学员信息分页列表
    return request({
        method: 'get',
        url: '/sysCourseStudent/query',
        params: data
    })
}

export function sysCourseStudentQueryById(id) { //查询一条学员信息
    return request({
        method: 'get',
        url: '/sysCourseStudent/query/' + id,
    })
}

export function sysCourseStudentAdd(data) { //添加一条学员信息
    return request({
        method: 'post',
        url: '/sysCourseStudent/add',
        data
    })
}

export function sysCourseStudentDelete(id) { //删除一条学员信息
    return request({
        method: 'get',
        url: '/sysCourseStudent/delete/' + id,
    })
}

export function sysCourseStudentUpdate(data) { //修改一条学员信息
    return request({
        method: 'post',
        url: '/sysCourseStudent/update',
        data
    })
}

export function sysCourseStudentTotal(id) { //查询一条学员总数
    return request({
        method: 'get',
        url: '/sysCourseStudent/getTotal/' + id,
    })
}


export function sysCourseStudentQueryOne(id) { //查询是否加入了学习
    return request({
        method: 'get',
        url: '/sysCourseStudent/queryOne/' + id,
    })
}